// 课表
class Plan {
    Classes classes
    String week = ''
    Teacher teacher
    String course = ''
    RestTime restTime
    School school



    static constraints = {
        classes nullable:false
        week(blank:false)
        teacher(nullable:true)
        course(blank:true)
        restTime(nullable:false)
        school(nullable:false)
    }

    static mapping = {
       table 'xedu_plan'       
    }

    String toString (){
        "${classes} ${week} ${course}"
    }
}
